<template>
  <div class="card-list">
    <div class="card-list-title">
      <span>{{ title }}</span>
      <span>{{ extra }}></span>
    </div>
    <div class="card-list-container"><slot /></div>
  </div>
</template>

<script lang="ts" setup>
defineProps<{
  title: string;
  extra: string;
}>();
</script>

<style scoped lang="scss">
.card-list {
  padding: 0 20rpx;
}

.card-list-title {
  height: 60rpx;
  background-color: #00cc99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0 20rpx;
}

.card-list-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20rpx 0;
}
</style>
